// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUi from 'element-ui'
import httpServiceUtils from './utils/httpServiceUtils'
import store from './store'
import * as filters from './filters/index'
import Func from './functions/index'

Vue.config.productionTip = false

// 全局属性设置
Vue.prototype.$http = httpServiceUtils
// 插件配置
Vue.use(ElementUi)
Vue.use(Func)
// 注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
